
i = 0
while i < 3:
    username = input('请输入账号：')
    password = input('请输入密码：')

    if (username == 'admin') & (password == '123'):
        print('账号密码正确，登录成功')
        i = 3
    else:
        print('账号密码错误！')
        i = i + 1
